package com.baba.bracelet.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author wulongbo
 * @version 1.0
 * @date 2020/6/10 20:59
 * @description
 */
@Data
@TableName("tbl_user_equip_relation")//@TableName中的值对应着表名
@ApiModel(value = "用户设备关系表")
public class UERelationEntity {
    /**
     * 主键id，UUID
     */
    @ApiModelProperty(value = "主键id", name = "id")
    @TableId(type = IdType.UUID)
    private String id;

    /**
     * 设备id
     */
    @ApiModelProperty(value = "设备id", name = "equip_id")
    private String equipId;


    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id",name = "user_id")
    private String userId;



    /**
     * 是否绑定：0/未绑定，1/绑定
     */
    @ApiModelProperty(value = "是否绑定：0/未绑定，1/绑定",name = "is_bind")
    private Integer isBind;


    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间",name = "create_time")
    private Date createTime;
}
